<template>
	<view>
		<u-cell-group v-for="item in detailList" :key="item.id">
			<u-cell>

				<view slot="title" class="cell-content">
					<view class="cell-1">
						<text>{{item.createTime}}</text>
					</view>

					<view class="cell-2">
						<text>{{item.content}}</text>
					</view>
				</view>

			</u-cell>
		</u-cell-group>
	</view>
</template>

<script>
	import http from '../../http';
	export default {
		data() {
			return {
				detailList: []
			}
		},
		methods: {
			getdetail() {
				http({
					url: "/api/student/user/log",
					method: "post"
				}).then(res => {
					console.log(res);
					this.detailList = res.response
				})
			},
		},
		onLoad() {
			this.getdetail()
		}
	}
</script>

<style lang="scss">
	.cell-content {
		display: flex;
		justify-items: center;
		flex-direction: column;
	}

	.cell-1 {
		display: flex;
		justify-content: center;
	}

	.cell-2 {
		display: flex;
		justify-content: center;
	}
</style>